home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
help_jr
/
ones
< prev
next >
Wrap
Text File
|
1994-02-21
|
431b
|
20 lines
ones:
Syntax: ones ( M , N )
ones ( A )
Description:
Create a matrix of ones. If the input is two scalars, then
create a matrix of 1s with dimensions NxM.
If the input is a 2 element matrix, then create a matrix with
row and column dimensions equal to A[1] and A[2] respectively.
This is useful when used in conjunction with size():
ones( size( X ) )
will return a matrix of ones the same size as X.
See Also: zeros